<?php

namespace ORM\Testing;

use Doctrine\ORM\Mapping as ORM;

/**
 * ORM\Testing\Joindata1
 */
class Joindata1
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $firstname
     */
    private $firstname;

    /**
     * @var string $lastname
     */
    private $lastname;

    /**
     * @var ORM\Testing\Joindata2
     */
    private $mycitylink;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set firstname
     *
     * @param string $firstname
     * @return Joindata1
     */
    public function setFirstname($firstname)
    {
        $this->firstname = $firstname;
        return $this;
    }

    /**
     * Get firstname
     *
     * @return string 
     */
    public function getFirstname()
    {
        return $this->firstname;
    }

    /**
     * Set lastname
     *
     * @param string $lastname
     * @return Joindata1
     */
    public function setLastname($lastname)
    {
        $this->lastname = $lastname;
        return $this;
    }

    /**
     * Get lastname
     *
     * @return string 
     */
    public function getLastname()
    {
        return $this->lastname;
    }

    /**
     * Set mycitylink
     *
     * @param ORM\Testing\Joindata2 $mycitylink
     * @return Joindata1
     */
    public function setMycitylink(\ORM\Testing\Joindata2 $mycitylink = null)
    {
        $this->mycitylink = $mycitylink;
        return $this;
    }

    /**
     * Get mycitylink
     *
     * @return ORM\Testing\Joindata2 
     */
    public function getMycitylink()
    {
        return $this->mycitylink;
    }
}